<template>
  <div>
    <Swiper>
      <SwiperItem v-for="item in banner" :key="item.image">
        <a :href="item.link">
          <img :src="item.image" @load="swiperImgLoad">
        </a>
      </SwiperItem>
    </Swiper>
  </div>
</template>

<script>
import {Swiper,SwiperItem} from "components/common/swiper";

export default {
  name: "mainSwiper",
  props: {
    banner:{
      type: Array,
      default(){
        return [];
      }
    }
  },
  components: {
    Swiper,
    SwiperItem
  },
  methods: {
    swiperImgLoad(){
      this.$bus.$emit("sImgLoad");
    }
  }
}
</script>